package com.gimi.cloud.jimi.merchantZone.consumer.service.product;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface ProductService {
	/**
	 * 商户中心查询修改详情
	 * @param prodId 商品ID
	 */
	public Response getProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;
	/**
	 * 商户中心修改商品保存操作
	 * @param pdd 封装商品数据
	 */
	public Response updateProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;
	/**
	 * 店铺查询经营范围的品类
	 * @param prodId 商品ID
	 */
	public Response getStoreCats(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;
	/**
	 * 商户中心添加商品保存操作
	 * @param pdd 封装商品数据
	 */
	public Response addProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;
	
	/**
	 * 商户中心发布商品
	 * @param pdd 封装商品数据
	 */
	public Response releaseProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;

	/**
	 * 商品列表
	 */
	public Response productList(String requestData, HttpServletResponse response, HttpServletRequest request)throws MsgException;

	/**
	 * 删除商品
	 */
	Response deleteProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;

	/**
	 * 商品下架
	 */
	Response upShelfProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;

	/**
	 * 商品下架
	 */
	Response offShelfProduct(String requestData,HttpServletResponse response, HttpServletRequest request)throws MsgException;

	/**
	 * 文件上传
	 */
	Response fileUpload(String body,MultipartFile file, HttpServletResponse response, HttpServletRequest request) throws Exception;
}
